// 封装本地localstroge

export const SET_TOKEN = (token: string) => {
    localStorage.setItem("TOKEN", token);
}

export const GET_TOKEN = (token = "TOKEN") => {
    return localStorage.getItem(token);
}

// 去除token

export const REMOVE_TOKEN = (token = "TOKEN") => {
    localStorage.removeItem(token);
}

// 去除所有的localStorage

export const CLEAR_TOKEN = () => {
    localStorage.clear();
}

